#{extends 'main.html' /}
#{set title:'CoolSoft - Create Note' /}
<h1><a href="@{Projects.showProject(project.getEntityId())}">${project.name}</a>
<h2>Create a note</h2>
<hr>
#{form @Projects.createNote(project.getEntityId()), id:'form' }
	Name:<br>
	<input type="text" name="name" value="${flash.name}" class="validate[required,custom[onlyLetter]" id="name"/>
	<br><br>
	Description:<br>
		<textarea rows="20" cols="40" name="description" class="validate[required]" id="description" >${flash.description}</textarea><br>
	<br>
	Associate with Event(s) :<br><br>
	#{list items:events, as:'event'}
	<input name = "eventsIds" id = "eventsIds" type = "checkbox"  value = "${event.getEntityId()}" />
	<a href="@{Events.showEvent(event.getEntityId())}">${event.name}</a>
	<br><br>
	#{/list}
	<input type="submit" value="Submit" />	
#{/form}